# API模块初始化文件

from fastapi import APIRouter

# 创建主API路由
api_router = APIRouter(prefix="/api")

# 导入并包含视频下载器路由
from .video_downloader import router as video_downloader_router
api_router.include_router(video_downloader_router, prefix="/video-downloader", tags=["video-downloader"])

# 导入并包含天气API路由
from .weather import weather_bp as weather_router
api_router.include_router(weather_router, tags=["weather"])

# 导入并包含文档API路由
from .documentation import router as documentation_router
api_router.include_router(documentation_router, prefix="/documentation", tags=["documentation"])

# 导入并包含文档工具API路由
from .doc_tools import router as doc_tools_router
api_router.include_router(doc_tools_router, prefix="/doc", tags=["doc_tools"])

# 导入并包含书签API路由
from .bookmarks import router as bookmarks_router
api_router.include_router(bookmarks_router, prefix="/bookmarks", tags=["bookmarks"])

# 导入页面路由（不包含在api_router中，因为它们是页面路由而不是API路由）
from .routes import router as page_router